#ifndef __USERBEAN_H__
#define __USERBEAN_H__

#include <iostream>
#include <string>

using std::string;
class userBean
{
private:
    string userName;
    string userPass;
    string token;

public:
    userBean(){}
    userBean(string userName, string userPass, string token){
        this->userName = userName;
        this->userPass = userPass;
        this->token = token;
    }

    ~userBean(){}
    void setUserName(string userName){
        this->userName = userName;
    }

    string getUserName(){
        return this->userName;
    }

    void setUserPass(string userPass){
        this->userPass = userPass;
    }

    string getUserPass(){
        return this->userPass;
    }

    void setToken(string token){
        this->token = token;
    }

    string getToken(){
        return this->token;
    }

    string toString(){
        return "{ \"token\":\"" + token + "\"" +
            ", \"userName\":\"" + userName + "\"" +
            ", \"userPass\":\"" + userPass + "\"" +
            '}';
    }
};

#endif